package com.cr.front.user.pojo.dto.param;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.Pattern;
import java.util.List;

@Data
public class UserAddParam {
    @Pattern(regexp = "^1[3-9]\\d{9}$", message = "手机号码格式错误")
    @ApiModelProperty(value = "用户账号", required = true)
    private String account;

    @ApiModelProperty(value = "密码",  required = true)
    private String password;

    @ApiModelProperty("角色id列表")
    private List<Long> roleIds;

    @NotEmpty(message = "验证码key不能为空")
    @ApiModelProperty(value = "验证码key", required = true)
    private String captchaKey;

    @NotEmpty(message = "验证码不能为空")
    @ApiModelProperty(value = "验证码", required = true)
    private String captcha;

}
